package com.zhijiang.hospital.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhijiang.hospital.entity.OutpatientDepartment;
import com.zhijiang.hospital.entity.dto.OutpatientDepartmentDto;
import com.zhijiang.hospital.entity.dto.OutpatientsRunDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 75936
 * @version 1.0
 * @project zhijiang_hospital_data
 * @description
 * @date 2022-10-26 10:24:31
 * todo:门诊运行mapper层
 */
@Mapper
@DS("master")
public interface OutpatientDepartmentMapper extends BaseMapper<OutpatientDepartment> {

    //List<OutpatientDepartment> findAll(@Param("baseQuery")BaseQuery baseQuery);
    List<OutpatientDepartmentDto> findAll();

    List<OutpatientsRunDto> getOutpatientsRunDto(@Param("sartTime") String sartTime, @Param("endTime") String endTime);


    String find(@Param("deptName") String deptName, @Param("sartTime") String sartTime, @Param("endTime") String endTime);

    List<OutpatientDepartment> loadDoctorNumberOfDay();

    List<OutpatientDepartment> loadDoctorNumberOfMonth();

    List<OutpatientDepartment> loadDoctorNumberOfYear();
}
